import { fetchGet,fetchPost} from '../utils/http'

/**
 * 参观人员列表
 */
export const getSignUpList = () => {
    return fetchGet("/lighthouse/getSignUpList")
}

/**
 * 是否报名
 */
export const hasSignUp = () => {
    return fetchGet("/lighthouse/hasSignUp")
}

/**
 * 报名参观
 */
export const signUp = (params) => {
    return fetchPost("/lighthouse/signUp",{
        company:params.company,
        count:params.count,                                        
        mail:params.mail,
        name:params.name,
        phone:params.phone,
    })
}

/**
 * 参观信息修改
 */
export const updateSignUp = (params) => {
    return fetchPost("/lighthouse/update",{
        company:params.company,
        count:params.count,                                        
        mail:params.mail,
        name:params.name,
        phone:params.phone,
    })
}